
	<div id="gallery" class="owl-carousel">
		<?php foreach($album_images as $img){ ?>
		<div class="item" style="background-image:url('<?php echo quotes_to_entities($img->image_source) ?>');"></div>
		<?php } ?>
	</div>
	<div id="gallery-thumb" class="bg5">
		<div>
			
			<div class="col-sm-9 ">
				<div style="position:relative;padding:0 15px" class="">
					<div style="position:relative;" class="">
						<div style="">
							<div id="owl-thumb-gallery" class="owl-carousel" >
								<?php 
								foreach($album_images as $img){
									$thumb = $img->image_source;
									$thumb = preg_replace('/\/data/','',$thumb,1);
									if(file_exists(APPPATH. "../data/thumbs/$thumb") && is_file(APPPATH. "../data/thumbs/$thumb")){
										$img->image_thumb = "/data/thumbs$thumb";
									}else{
										$img->image_thumb = $img->image_source;
									}
								?>
								<div class="item"><div style="background-image:url('<?php echo quotes_to_entities($img->image_thumb) ?>');"></div></div>
								<?php 
								} 
								?>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div style="display:table;height:100%;padding-left: 20px;">
					<div style="display: table-cell;vertical-align: middle;">
						<h1 style="width:100%;"><?php echo quotes_to_entities($album->album_title) ?>
						<div style="width:40px;height:1px;background:#636B38;margin:12px 0 0 0"></div>
						</h1>
						<div style="color:#fff;font-size:13px;padding-top:8px">
							<?php echo quotes_to_entities($album->album_desc) ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	
